package cn.livingCloud.dto;

import cn.livingCloud.entity.core.ReplySet;

/**
 * Created by 唐旭 on 2016/6/1.
 */
public class ReplySetDto {
    private String uuid;
    private String name;
    private String content;
    private String shortContent;

    public ReplySetDto() {
    }

    public ReplySetDto(ReplySet set) {
        this.uuid = set.getUuid();
        this.name = set.getName();
        this.content = set.getContent();
        if (content.length() > 40) {
            this.shortContent = content.substring(0, 40) + "...";
        } else {
            this.shortContent = content;
        }
    }

    public String getContent() {
        return content;
    }

    public ReplySetDto setContent(String content) {
        this.content = content;
        return this;
    }

    public String getName() {
        return name;
    }

    public ReplySetDto setName(String name) {
        this.name = name;
        return this;
    }

    public String getUuid() {
        return uuid;
    }

    public ReplySetDto setUuid(String uuid) {
        this.uuid = uuid;
        return this;
    }

    public String getShortContent() {
        return shortContent;
    }

    public ReplySetDto setShortContent(String shortContent) {
        this.shortContent = shortContent;
        return this;
    }
}
